{extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/view_res/mobile/css/login.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/lib/weui.min.css" type="text/css" rel="Stylesheet" />
<link href="__PUBLIC__/jquery-weui/dist/css/jquery-weui.min.css" type="text/css" rel="Stylesheet" />
<script src="__PUBLIC__/jquery-weui/dist/js/jquery-weui.min.js"></script>

{/block} 
{block name="header"}
{include file="public/top-nav" /}
{/block}

{block name="content"}
<form id="login-wrap">
  

    <header class="Thead">转换数量</header>
    {:token()}
    <div style="margin:0 10px;">
        <div class="gs-text">
            <input type="number" name="num" value=""  tabindex="2" placeholder="请输入回购数量，200转一个巨能果" />
        </div>
    </div>



<a class="button green" href="javascript:;" id="reg-btn">确认提交</a>

<header class="Thead">历史记录</header>
<div id="ulist">

{volist name="list" id="p"}            
    <section class="ulist clearfix">
        <div>{$p.description} <span style="padding:0 8px;"></span>数量<?php echo $p['num'].'  '; ?><span style="padding:0 8px;"></span>时间<?php echo date('Y-m-d',$p['creat_time']); ?><span style="padding:0 8px;"></span> </div>                     
    </section>
{/volist}
</div>
{/block}

{block name="script"}
<script>


$('#reg-btn').click(function(){
	$.post(
		
		'{:url("account/tf")}',	
		
		$('input[type="text"],input[type="number"],input[type="hidden"]'),
		function(d){
			//alert(d.success);
			if(d.error){
				$.toast(d.error, "forbidden");
			}else if(d.success){
				$.toast(d.success);
				
				setTimeout(function (){
			      history.go("/mobile/account/index");
			    },2000);
			}
		}
	);
});


</script>
{/block}